-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/tinydtls: add IPv4 support #17765
pkg/tinydtls: add IPv4 support #17765
Conversation
&& uip_ipaddr_cmp(&((A)->addr),&((B)->addr)) \ | ||
&& (A)->ifindex == (B)->ifindex) | ||
-#elif defined(WITH_RIOT_GNRC) | ||
+#elif defined(WITH_RIOT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+#elif defined(WITH_RIOT) | |
#elif defined(RIOT_VERSION) |
should work as well and doesn't require a custom define (this is used by other pkgs too)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah wait so when RIOT is used with the posix_sockets
module this path should not be taken - then how about WITH_RIOT_SOCK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed WITH_RIOT_GNRC
to WITH_RIOT_SOCK
as suggested.
CI is unhappy |
f979699
to
7def280
Compare
I fixed the compilation for |
Using tinydtls on RIOT OS is not limited to GNRC as network stack. It is also working with e.g. lwIP, see: RIOT-OS#17552 Therefore the name WITH_RIOT_GNRC is misleading.
7def280
to
d424aae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Btw: tinydtls has RIOT support, so you also want to submit your patch upsream so we can drop it in the future.
Thank you very much for your review @benpicco ! |
This PR broke |
Contribution description
Add IPv4 support to
pkg/tinydtls
.This PR contains two patches which I will try to get merged in the upstream repository once this PR is merged.
Testing procedure
Can be tested with #17763
Issues/PRs references
Dependencies: